package com.cd.system.service.impl;

import com.cd.system.jpa.repository.GanttRepository;
import com.cd.system.service.GanttService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GanttServiceImpl implements GanttService {

    @Autowired
    //@Resource(name = "GanttRepository")
    GanttRepository ganttRepository;

    @Override
    public List getGanttData() {
        return (List)ganttRepository.findAll();
    }
}
